target = "zip2exe"

files = Split("""
	main.cpp
	zlib/adler32.c
	zlib/crc32.c
	zlib/inffast.c
	zlib/inflate.c
	zlib/inftrees.c
	zlib/ioapi.c
	zlib/unzip.c
	zlib/zutil.c
""")

resources = Split("""
	zip2exe.xml
	icon.ico
""")

rc = 'res.rc'

libs = Split("""
	user32
	gdi32
	comctl32
	comdlg32
	advapi32
	shell32
""")

Import('BuildUtil defenv')

if defenv['UNICODE']:
	headers = Split("""
		Unicode/Base.nsh
		Unicode/Classic.nsh
		Unicode/Modern.nsh
	""")
else:
	headers = Split("""
		ANSI/Base.nsh
		ANSI/Classic.nsh
		ANSI/Modern.nsh
	""")

BuildUtil(target, files, libs, res = rc, resources = resources)

defenv.DistributeContrib(headers,path=target)
